package com.yiyi.credit.manage.abutment.mapper;

import com.yiyi.credit.manage.abutment.common.mapper.CommonMapper;
import com.yiyi.credit.manage.abutment.provider.SubStationSqlProvider;
import com.yiyi.credit.manage.model.entity.SubStation;
import com.yiyi.credit.manage.model.po.SubstationTradePO;
import com.yiyi.credit.manage.model.vo.SubstationTradeVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;


import java.util.List;

public interface SubStationMapper extends CommonMapper<SubStation> {

    @SelectProvider(type = SubStationSqlProvider.class, method = "getSubStationPageList")
    List<SubStation> getSubStationPageList(@Param("subStation") SubStation subStation);

    @SelectProvider(type = SubStationSqlProvider.class, method = "listTrades")
    List<SubstationTradeVO> listTrades(SubstationTradePO tradePO);
}